[@b.head/]

[#assign xuefei=0]
[#assign baoxianfei=0]
[#assign total=0]
[#list schoolings as payment]
  [#assign xuefei=xuefei + math.parse(payment.xuefei)]
  [#assign baoxianfei=baoxianfei + math.parse(payment.baoxianfei)]
  [#assign total=total + math.parse(payment.total)]
[/#list]
[#--
[#assign xuefei2=0]
[#assign baoxianfei2=0]
[#assign total2=0]
[#list schoolings as payment]
  [#assign xuefei2=xuefei2 + math.parse(payment.xuefei2)]
  [#assign baoxianfei2=baoxianfei2 + math.parse(payment.baoxianfei2)]
  [#assign total2=total2 + math.parse(payment.total2)]
[/#list]
--]
<table class="table  table-hover table-bordered">
<tr>
	<td style="font-size:14px;width:11%">学费:</td>
	<td style="font-size:14px;color:red;width:11%">${xuefei}</td>
	<td style="font-size:14px;width:11%">保险费:</td>
	<td style="font-size:14px;color:red;width:11%">${baoxianfei}</td>
	<td style="font-size:14px;width:11%">总计:</td>
	<td style="font-size:14px;color:red;width:11%">${total}</td>
</tr>
[#--*红色为应交，蓝色为已交。--]
</table>

[@b.grid items=schoolings var="schooling" caption=caption style="table-layout:fixed"]
  [@b.gridbar]
	   bar.addItem("添加",action.add());
	   bar.addItem("修改",action.edit());
	   bar.addItem("删除",action.remove());
	   var m=bar.addMenu("导入",action.method("importForm"));
	   m.addItem("下载导入模版",action.method("importTemplate",null,null,false));
	   bar.addItem("导出",action.method("exportpayment",null,null,false));
  [/@]
  [@b.row]
    [@b.boxcol width="2%" name="schooling.id"/]
    [@b.col title="学号"  width="7%" property="code" ][@b.a href="!info?id="+schooling.id target="_blank"]${schooling.code}[/@][/@]
    [@b.col title="姓名"  width="12%" property="name" /]
    [@b.col title="奖学金生"  width="7%" property="scholarship.name" /]
    [@b.col title="学年学期"  width="7%" property="semester.code" /]
    [@b.col title="报名费"  width="6%" property="baoming" /] 
    [@b.col title="学费"  width="6%" property="xuefei" /]
    [@b.col title="保险费"  width="6%" property="baoxianfei" /]
    [@b.col title="一卡通费"  width="6%" property="yikatong" /]
    [@b.col title="借书押金"  width="6%" property="jieshu" /]
    [@b.col title="总计"  width="7%" property="total" /]
    [@b.col title="学生类型"  width="7%" property="stdtype.name" /]
    [@b.col title="学费类型"  width="7%" property="paytype.name" /]
    [@b.col title="交费状态"  width="7%" property="paystate.name" /]
    [@b.col title="发票号"  width="7%" property="invoice" /]
    [@b.col title="交费时间"  width="7%" property="time" /]   
    [@b.col title="备注"  width="7%" property="notes" /]
  [/@]
[/@]

[@b.foot/]